let {Schema,model} = require('mongoose')

const goodModelSchema=new Schema({
    //商品名称
    goodName:String,
    //商品数量
    num:Number,
    //商品图片
    img:String,
    //商品类型id
    goodsType:{
        type:Schema.Types.ObjectId,
        ref:'goodType'
    },
    status:Number,
    detail:String,
    creater:String
}, {timestamps:true,versionKey:false})


module.exports.goodsModel = model('good',goodModelSchema,'good')